package com.ruoyi.background.mapper;

import com.ruoyi.background.domain.AppWorkTeamUser;

import java.util.List;


/**
 * 队伍成员Mapper接口
 *
 * @author susu
 * @date 2024-09-04
 */
public interface AppWorkTeamUserMapper {
    /**
     * 查询队伍成员
     *
     * @param id 队伍成员主键
     * @return 队伍成员
     */
    public AppWorkTeamUser selectAppWorkTeamUserById(Long id);

    /**
     * 通过用户id查询
     *
     * @param userId 结果
     * @return 几个
     */
    public AppWorkTeamUser selectAppWorkTeamUserByUserId(Long userId);

    /**
     * 查询队伍信息
     * @param userId 用户id
     * @return 结果
     */
    public AppWorkTeamUser selectTeamInfoByUserId(Long userId);

    /**
     * 查询队伍成员列表
     *
     * @param appWorkTeamUser 队伍成员
     * @return 队伍成员集合
     */
    public List<AppWorkTeamUser> selectAppWorkTeamUserList(AppWorkTeamUser appWorkTeamUser);

    /**
     * 新增队伍成员
     *
     * @param appWorkTeamUser 队伍成员
     * @return 结果
     */
    public int insertAppWorkTeamUser(AppWorkTeamUser appWorkTeamUser);

    /**
     * 修改队伍成员
     *
     * @param appWorkTeamUser 队伍成员
     * @return 结果
     */
    public int updateAppWorkTeamUser(AppWorkTeamUser appWorkTeamUser);

    /**
     * 删除队伍成员
     *
     * @param id 队伍成员主键
     * @return 结果
     */
    public int deleteAppWorkTeamUserById(Long id);

    /**
     * 批量删除队伍成员
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppWorkTeamUserByIds(Long[] ids);
}
